function fnDecorator(target: any, key: string, desc: any) {
  console.log(key)
  console.log(desc)
  console.log(Object.getOwnPropertyDescriptor(target, key))
}

class Test {
  name = '超人鸭'
  age = 18

  @fnDecorator
  getName() {
    return this.name
  }
}
